
var checkIeSupport = function() {
    var ieRe = /MSIE (\S+)/;
    if (!ieRe.test(navigator.userAgent)) {
	return;
    }

    var isAvailable = function() {
	var cachedAvailable = false;

	// Look for CF in the User Agent before trying more expensive checks
	var ua = navigator.userAgent.toLowerCase();
	if (ua.indexOf("chromeframe") >= 0 || ua.indexOf("x-clock") >= 0) {
	    cachedAvailable = true;
	    return cachedAvailable;
	}

	if (typeof window['ActiveXObject'] != 'undefined') {
	    try {
		var obj = new ActiveXObject('ChromeTab.ChromeFrame');
		if (obj) {
		    cachedAvailable = true;
		}
	    } catch(e) {
		// squelch
	    }
	}
	return cachedAvailable;
    };

    if (!isAvailable()) {
	window.location = "chromeframe/ChromeFrameInstaller.html";
    }
}

checkIeSupport();